package com.woniuxy.carlife.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author fx
 * @ClassName:ServiceRoyaltyServiceImpl
 * @Description: 用户拥有优惠券实体类
 * @date 2021/4/12 17:00
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_user_coupon")
@ApiModel(value="UserCoupon对象", description="")
public class UserCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty(value = "主键、自增")
        @TableId(value = "user_coupon_id", type = IdType.AUTO)
      private Integer userCouponId;

      @ApiModelProperty(value = "用户id")
      private Integer userId;

      @ApiModelProperty(value = "优惠券id")
      private Integer couponId;

      @ApiModelProperty(value = "用户的优惠券状态(已使用/未使用/已过期)")
      private String couponStatus;

      @ApiModelProperty(value = "用户领取优惠券时间")
      private Date userCouponCreateTime;

      @ApiModelProperty(value = "用户使用优惠券时间")
      private Date userCouponUpdateTime;


}
